import {createAction} from 'redux-actions'

export const load_todo = createAction('load_todo')
export const load_todo_success = createAction('load_todo_success')

export const add_todo = createAction('add_todo')
export const add_todo_success = createAction('add_todo_success')


export const remove_todo = createAction("remove_todo")
export const remove_todo_success = createAction("remove_todo_success")

export const modify_todo = createAction("modify_todo")
export const modify_todo_success = createAction("modify_todo_success")

export const modify_actives_todo = createAction("modify_actives_todo")

export const clear_active_todo = createAction("modify_active_todo")
export const clear_active_todo_success = createAction("modify_active_todo_success")

export const modify_todo_edit = createAction("modify_todo_edit")
export const modify_todo_edit_success = createAction("modify_todo_edit_success")


export const modify_active = createAction("modify_active")
export const modify_active_success = createAction("modify_active_success")

/**
 * 01 发送请求获取数据  load_todo
 * 02 当数据请求触发完成后，触发新指令  load_todo_success
 */